package com.qr.backend.service;

import jakarta.servlet.http.HttpSession;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @author : jinxiaobo
 * @date : 2023年12月19日 11:18:38
 * @description : 用户登入认证service
 */

public interface AuthorizeService extends UserDetailsService {

    //发送邮件
    String sendValidateEmail(String email,String sessionId,boolean hasCount);

    String validateAndRegister(String username, String password, String email, String code,String sessionId);

    String validateEmailCode(String email, String code, HttpSession httpSession);

    boolean resetPassWord(String password, String email);
}
